home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(_root.Start == true && Dead == false)
- {
- if(Pause > 0)
- {
- Pause--;
- }
- if(Pause <= 0)
- {
- if(Key.isDown(37))
- {
- this.Movements.prevFrame();
- Pause = 3;
- }
- else if(Key.isDown(39))
- {
- this.Movements.nextFrame();
- Pause = 3;
- }
- }
- if(Key.isDown(32) && fired == false)
- {
- fire();
- }
- else if(!Key.isDown(32))
- {
- fired = false;
- }
- if(_root.TotalPlanes < 4 + _root.LevelStage)
- {
- _root.AddPlanes();
- _root.TotalPlanes += 1;
- }
- }
- }
-